There are several parties working on my database, and half of them define dates as strings. Is there a way to convert a string to a date variable for easy comparison?
|
Re: dates If the string is correctly formed, i.e. DOORS can understand it, then you can assign a string value to a date variable directly. Date d = "26 June 1966" or d = "6/2/66"
|
Re: dates Tony_Goodman - Tue Jun 16 03:17:12 EDT 2009 If the string is correctly formed, i.e. DOORS can understand it, then you can assign a string value to a date variable directly. Date d = "26 June 1966" or d = "6/2/66"
My standard format for reports (including the name of the report) is "1966-Jun-02"; a nice combination of easy-to-understand and sorts-reasonably-well. Have been thinking about changing to "1966-06-02" which sorts perfectly, but isn't quite as easy to understand.
|
Re: dates llandale - Tue Jun 16 09:44:37 EDT 2009
http://en.wikipedia.org/wiki/ISO_8601 |
Re: dates kbmurphy - Tue Jun 16 18:27:55 EDT 2009 Date d = "2009-06-17" // produces run time errors. I already had a string-to-date function which I then had to update, and also recognize "2009-6-17". I then had to find in all my scripts places that do this: Date d = <some format generated by me>, and change them all to Date d = fDateOf(<some format generated by me>). None of my Dates are easy; not sure why I would expect my DOORS Dates to be any different.
|